package com.oedtech.esl.socket;

import io.netty.channel.Channel;

import java.net.Socket;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


/**
 * 单例channelMap，用于保存所有连接的基站的channel
 * key记录基站ID，value记录与基站连接的channel
 */
public class BsChannelMap {
    private final static Map<String,Channel> bsChannelMap=new ConcurrentHashMap<>();
    private BsChannelMap(){

    }
    public  static Map<String,Channel> getInstance(){
        return bsChannelMap;
    }
}
